package com.rules.admin.controller.decision;


import com.rules.admin.entity.DecisionRow;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@RequestMapping({"/decision-tables/{tableId}/decision-rows"})
public class DecisionRowController {
   @RequestMapping(
      method = {RequestMethod.POST}
   )
   @ResponseBody
   public Map<String, Object> createDecisionRow(@RequestBody DecisionRow decisionRow) {
      return null;
   }

   @RequestMapping(
      value = {"/{id}"},
      method = {RequestMethod.DELETE}
   )
   @ResponseBody
   public Map<String, Object> deleteDecisionRow(@PathVariable Long id) {
      return null;
   }

   @RequestMapping(
      value = {"/{id}"},
      method = {RequestMethod.PUT}
   )
   @ResponseBody
   public Map<String, Object> updateDecisionRow(@RequestBody DecisionRow decisionRow) {
      return null;
   }

   @RequestMapping(
      method = {RequestMethod.GET}
   )
   @ResponseBody
   public List<DecisionRow> searchDecisionRows() {
      return null;
   }
}
